function rsfp_changePage(formId, page, totalPages)
{
	for (var i=0; i<=totalPages; i++)
	{
		var thePage = document.getElementById('rsform_' + formId + '_page_' + i);
		if (thePage)
			document.getElementById('rsform_' + formId + '_page_' + i).style.display = 'none';
	}
	
	var thePage = document.getElementById('rsform_' + formId + '_page_' + page);
	if (thePage)
		thePage.style.display = '';
}